package com.xdcplus.web.common.enums;

/**
 * 质量检查小组状态枚举
 *
 * @author Fish.Fei
 * @date 2023/05/30
 */
public enum QaCheckGroupStatusEnum {
    STOP(0L, "停止"),
    START(1L, "启动"),
    ;

    private Long code;

    private String msg;

    public static String getMsg(Long code) {
        for (QaCheckGroupStatusEnum ele : values()) {
            if (ele.getCode().equals(code)) {
                return ele.getMsg();
            }
        }
        return null;
    }

    QaCheckGroupStatusEnum(Long code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Long getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
